import http from '../libs/http'

export interface GoodProps {
    id: string
    name: string;
    price: number;
    description: string;
}

export const queryGoodsList = () => {
    return http<GoodProps[]>({
      url: `/goods/list`,
      method: 'get',
    })
}

export const deleteGood = (id: string) => {
    return http({
      url: `/goods/detail/${id}`,
      method: 'delete',
    })
}